☰ Menu

Y8 - SU1.2 - Hexadecimal

⏱️ Do It Now

Create a OneNote Page and copy this into the title:

Lesson 2 - Summer 1 - Hexadecimal



Copy this into a OneNote Page and complete it

📝 Do It Now

Topic from which to answer questions

Do each of the following:

  • Explain why we need the binary number system

  • Convert 9 into a binary number (you only need 4 place values)
    8421
        
  • Work out the denary version of this binary number
    1286432168421
    01100110


Extennsion Activity

Go to This Linkto do some more binary challenges

Remember to screenshot your results

🎯 Learning Objectives


  • LO1: Be able to explain the need for Hexadecimal
  • LO2: Be able to convert a binary number into Hexadecimal
  • LO3: Be able to convert a denary number into Hexadecimal

📝 Written Activity

Copy this into a OneNote Page
Use the next two slides to help you answer each question.

📝 Activity 1

Topic from which to answer questions

Do each of the following:

  1. Define the term nibble.

  2. List the hexadecimal equivalents for denary values 11 to 15.

  3. Convert the binary number 1100 into hexadecimal.

  4. Explain why IPv6 addresses are written by humans in hexadecimal as opposed to binary.

  5. Explain the difference between writing a colour value in binary and in hexadecimal


Extension

Research other uses for hexadecimal and explain them below


📖 Information Source

What is Hexadecimal?

  • What is Hexadecimal
  • Its relationship with Binary

What is Hexadecimal?

  • Hexadecimal is a base sixteen number system
  • This means that instead of using ten numerals (like denary) or two numerals (like binary), it uses sixteen numerals
  • Denary 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
    Hex 0 1 2 3 4 5 6 7 8 9 A B C D E F

Hexadecimal's Relationship With Binary

For every 4 bits (individual 1s or 0s) there can be sixteen possible combinations.

We call every 4 bits a nibble

  • 0000 = 0
  • 0001 = 1
  • 0010 = 2
  • 0011 = 3
  • 0100 = 4
  • 0101 = 5
  • 0110 = 6
  • 0111 = 7
  • 1000 = 8
  • 1001 = 9
  • 1010 = A
  • 1011 = B
  • 1100 = C
  • 1101 = D
  • 1110 = E
  • 1111 = F

Therefore, the binary number 0111 1111 is represented as 7F

The binary number 1110 0110 is represented as E6

📖 Information Source

Why use Hexadecimal at all?

  • As you will have read on the previous slide, Hexadecimal allows us to represent each nibble (four 1s and 0s) with one single numeral
  • Hexadecimal is used to write the shorthand for an internet address
  • Hexadecimal also allows us to represent colour values in a simpler manner

iPv6 Internet Addresses

  • Modern internet addresses are called iPv6
  • In binary each iPv6 address would be 128 bits (128 individual 1s and 0s)
  • 128 bits is a lot to both read and write correctly!
  • Instead we represent iPv6 addresses as Hexadecimal and the computer converts them to binary
  • Instead of:
    0010000000000001
    0000110110111000
    0000000000000000
    0000000000000000
    0000000000000000
    0000000000000000
    0000000000000000
    0000000000000001

    You can simply write: 2001:0db8:0000:0000:0000:0000:0000:0001

Coloring Pixels in an Image

  • Image files are made from thousands of pixels (squares of colour) 🟥🟧🟧🟥
  • Representing the colour value of a pixel in binary requires 24 bits (24 individual 1s and 0s)
  • If we write the same number in hexadecimal it only requires six characters
  • Colour Value In Binary:
    001000101000101100100010

    Colour Value In Hexadecimal:
    228B22

⌨️ Practical Activity

Click on This Link to try the Hexadecimal Converter App


Watch This Video to see how the task should be completed


Extension

Click This Link to play Flippy and Bit - Attack of the Hexadecimals.

Screen shot your highest score into OneNote

MWB Plenary

📝 MWB Reflection Task

Open the mini-whiteboard app in a new tab

Your teacher will start with these leading questions:

  • What is the Hexadecimal character for eleven?
  • Why do we write iPv6 addresses in hexadecimal as opposed to binary?
  • What are four 1s and 0s called?